package com.hzb.shop.goods.service;

import com.hzb.shop.goods.entiy.ShopGoodsCategory;
import com.hzb.shop.goods.mapper.ShopGoodsCategoryMapper;
import com.hzb.shop.goods.rpc.ShopGoodsCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/9/11.
 */
@Service
public class ShopGoodsCategoryServiceImpl implements ShopGoodsCategoryService {
    @Autowired
    private ShopGoodsCategoryMapper shopGoodsCategoryMapper;

    public int add(ShopGoodsCategory shopGoodsCategory) {
        return shopGoodsCategoryMapper.add(shopGoodsCategory);
    }

    public int update(ShopGoodsCategory shopGoodsCategory) {
        return shopGoodsCategoryMapper.update(shopGoodsCategory);
    }

    public ShopGoodsCategory get(ShopGoodsCategory shopGoodsCategory) {
        return shopGoodsCategoryMapper.get(shopGoodsCategory);
    }

    public List<ShopGoodsCategory> findList(ShopGoodsCategory shopGoodsCategory) {
        return shopGoodsCategoryMapper.findList(shopGoodsCategory);
    }

    public int delete(ShopGoodsCategory shopGoodsCategory) {
        return shopGoodsCategoryMapper.delete(shopGoodsCategory);
    }
}
